<?php

use Illuminate\Database\Seeder;

class ContentCategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $categorys = [
            ['title'=>'银河系','parent_id'=>0,'content_model_id'=>3],
            ['title'=>'地球','parent_id'=>1,'content_model_id'=>3],
            ['title'=>'中国','parent_id'=>2,'content_model_id'=>1],
            ['title'=>'北京','parent_id'=>3,'content_model_id'=>1],
        ];
        foreach ($categorys as $category){
            \App\Models\CategoryModel::create($category);
        }



    }
}
